﻿namespace EFS.RC.CommunicatorContext.Common
{
	public class MessageContextArgs : System.EventArgs
	{
		public Microsoft.Lync.Model.Conversation.ContextEventArgs LyncContextEventArgs { get; private set; }

		public EFS.RC.CC.Messages.Message Message { get; private set; }

		public MessageContextArgs(Microsoft.Lync.Model.Conversation.ContextEventArgs lyncContextEventArgs)
		{
			// check
			EFS.Common.Verify.Reference(lyncContextEventArgs, "lyncContextEventArgs");

			// set
			this.LyncContextEventArgs = lyncContextEventArgs;
			this.Message = EFS.RC.CC.Messages.Message.Deserialize(lyncContextEventArgs.ContextData);
		}
	}

}